package fr.enseirbmatmeca.apms.tapestry.pages;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.tapestry5.annotations.Persist;
import org.apache.tapestry5.annotations.Property;

import fr.enseirbmatmeca.apms.spring.model.project.Project;
import fr.enseirbmatmeca.apms.tapestry.entities.Sujet;
import fr.enseirbmatmeca.apms.tapestry.pages.account.Home1;

public class CreateSujet extends Security {
	protected static Log logger = LogFactory.getLog(CreateSujet.class);
	@Persist
	@Property
	private Sujet newsujet;
	@Persist
	@Property
	private Project project;
	@Persist
	@Property
	private Home1 home1;

	Object onSuccess() {
		// project.setDescription(newsujet.description);
		// project.setName(newsujet.name);
		// project.setTags(newsujet.tags);
		// projectManager.createProject(project);
		// home1.setup(project);
		// return home1;
		logger.info(" session  :");
		return null;

	}
}
